<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/4
 * Time: 16:14
 */

namespace app\common\validate;

class Link extends \think\Validate
{
    protected $rule = [
        'title|标题' =>  'require|max:50',
        'url|内容' =>  'require|url',
        'status' =>'number|in:1,0',
    ];

    protected $message = [
        'status'=>'校验范围不合法',
    ];

    protected $scene = [
    ];

}